//
//  SortCollectionViewCell.m
//  Menu
//
//  Created by Lynn-Shin on 15/7/6.
//  Copyright (c) 2015年 lijiangang. All rights reserved.
//

#import "SortCollectionViewCell.h"

@implementation SortCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        [self createSubViews];
    }
    return self;
}

-(void)createSubViews{
    
    self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100*WIDTH, 40*HEIGHT)];
    self.nameLabel.backgroundColor = [UIColor whiteColor];
    self.nameLabel.textAlignment = NSTextAlignmentCenter;
    self.nameLabel.font = [UIFont systemFontOfSize:14];
    self.nameLabel.numberOfLines = 2;
    self.nameLabel.layer.borderWidth = 0.5;
    self.nameLabel.layer.cornerRadius = 5;
    self.nameLabel.layer.masksToBounds = YES;
    [self addSubview:self.nameLabel];
}

-(void)setSmallModel:(SmallSortModel *)smallModel{
    
    if (_smallModel != smallModel) {
        [_smallModel release];
        _smallModel = [smallModel retain];
    }
//    self.nameLabel.text = smallModel.name;
}


@end
